<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsPrintUks" targetNamespace="http://tempuri.org/dsPrinUks.xsd" xmlns:mstns="http://tempuri.org/dsPrinUks.xsd" xmlns="http://tempuri.org/dsPrinUks.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="p301ConnString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="p301ConnString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.p301.Properties.Settings.GlobalReference.Default.p301ConnString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="taUks" GeneratorDataComponentClassName="taUks" Name="dtUks" UserDataComponentName="taUks">
            <MainSource>
              <DbSource ConnectionRef="p301ConnString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="False" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     b_uks.NPP_UKS, b_uks.D_DZ, dbo.N_FIO(b_klient.N_FA, b_klient.N_IM, b_klient.N_OT) AS N_FIO, s_pol.N_POL, YEAR(GETDATE()) 
                      - b_klient.GOD_R AS VOZR, s_obr.N_OBR_SOKR, s_spec.N_SPEC, vAdr.N_TEL, vAdr.N_ADR, s_inf_centr.N_INF_CENTR, b_uks.N_ORG_NAPRAVIL, 
                      s_sp.N_SP
FROM         b_uks INNER JOIN
                      b_klient ON b_uks.K_UKS = b_klient.K_UKS INNER JOIN
                      s_pol ON b_klient.K_POL = s_pol.K_POL INNER JOIN
                      vAdr ON vAdr.K_ADR = b_uks.K_ADR LEFT OUTER JOIN
                      s_sp ON b_uks.K_SP = s_sp.K_SP LEFT OUTER JOIN
                      s_inf_centr ON b_uks.K_INF_CENTR = s_inf_centr.K_INF_CENTR LEFT OUTER JOIN
                      s_spec ON b_klient.K_SPEC = s_spec.K_SPEC LEFT OUTER JOIN
                      s_obr ON b_klient.K_OBR = s_obr.K_OBR
WHERE     (b_klient.F_INITSIATOR = 1) AND (b_uks.K_UKS = @pK_UKS)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="pK_UKS" ColumnName="K_UKS" DataSourceName="p301.dbo.b_uks" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pK_UKS" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="K_UKS" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="NPP_UKS" DataSetColumn="NPP_UKS" />
              <Mapping SourceColumn="D_DZ" DataSetColumn="D_DZ" />
              <Mapping SourceColumn="N_FIO" DataSetColumn="N_FIO" />
              <Mapping SourceColumn="N_POL" DataSetColumn="N_POL" />
              <Mapping SourceColumn="VOZR" DataSetColumn="VOZR" />
              <Mapping SourceColumn="N_OBR_SOKR" DataSetColumn="N_OBR_SOKR" />
              <Mapping SourceColumn="N_SPEC" DataSetColumn="N_SPEC" />
              <Mapping SourceColumn="N_TEL" DataSetColumn="N_TEL" />
              <Mapping SourceColumn="N_ADR" DataSetColumn="N_ADR" />
              <Mapping SourceColumn="N_INF_CENTR" DataSetColumn="N_INF_CENTR" />
              <Mapping SourceColumn="N_ORG_NAPRAVIL" DataSetColumn="N_ORG_NAPRAVIL" />
              <Mapping SourceColumn="N_SP" DataSetColumn="N_SP" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsPrintUks" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsPrintUks" msprop:Generator_DataSetName="dsPrintUks">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="dtUks" msprop:Generator_UserTableName="dtUks" msprop:Generator_RowDeletedName="dtUksRowDeleted" msprop:Generator_RowChangedName="dtUksRowChanged" msprop:Generator_RowClassName="dtUksRow" msprop:Generator_RowChangingName="dtUksRowChanging" msprop:Generator_RowEvArgName="dtUksRowChangeEvent" msprop:Generator_RowEvHandlerName="dtUksRowChangeEventHandler" msprop:Generator_TableClassName="dtUksDataTable" msprop:Generator_TableVarName="tabledtUks" msprop:Generator_RowDeletingName="dtUksRowDeleting" msprop:Generator_TablePropName="dtUks">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NPP_UKS" msprop:Generator_UserColumnName="NPP_UKS" msprop:Generator_ColumnVarNameInTable="columnNPP_UKS" msprop:Generator_ColumnPropNameInRow="NPP_UKS" msprop:Generator_ColumnPropNameInTable="NPP_UKSColumn" type="xs:int" minOccurs="0" />
              <xs:element name="D_DZ" msprop:Generator_UserColumnName="D_DZ" msprop:Generator_ColumnVarNameInTable="columnD_DZ" msprop:Generator_ColumnPropNameInRow="D_DZ" msprop:Generator_ColumnPropNameInTable="D_DZColumn" type="xs:dateTime" />
              <xs:element name="N_FIO" msdata:ReadOnly="true" msprop:Generator_UserColumnName="N_FIO" msprop:Generator_ColumnVarNameInTable="columnN_FIO" msprop:Generator_ColumnPropNameInRow="N_FIO" msprop:Generator_ColumnPropNameInTable="N_FIOColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="155" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_POL" msprop:Generator_UserColumnName="N_POL" msprop:Generator_ColumnVarNameInTable="columnN_POL" msprop:Generator_ColumnPropNameInRow="N_POL" msprop:Generator_ColumnPropNameInTable="N_POLColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VOZR" msdata:ReadOnly="true" msprop:Generator_UserColumnName="VOZR" msprop:Generator_ColumnVarNameInTable="columnVOZR" msprop:Generator_ColumnPropNameInRow="VOZR" msprop:Generator_ColumnPropNameInTable="VOZRColumn" type="xs:int" minOccurs="0" />
              <xs:element name="N_OBR_SOKR" msprop:Generator_UserColumnName="N_OBR_SOKR" msprop:Generator_ColumnVarNameInTable="columnN_OBR_SOKR" msprop:Generator_ColumnPropNameInRow="N_OBR_SOKR" msprop:Generator_ColumnPropNameInTable="N_OBR_SOKRColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_SPEC" msprop:Generator_UserColumnName="N_SPEC" msprop:Generator_ColumnVarNameInTable="columnN_SPEC" msprop:Generator_ColumnPropNameInRow="N_SPEC" msprop:Generator_ColumnPropNameInTable="N_SPECColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_TEL" msprop:Generator_UserColumnName="N_TEL" msprop:Generator_ColumnVarNameInTable="columnN_TEL" msprop:Generator_ColumnPropNameInRow="N_TEL" msprop:Generator_ColumnPropNameInTable="N_TELColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_ADR" msdata:ReadOnly="true" msprop:Generator_UserColumnName="N_ADR" msprop:Generator_ColumnVarNameInTable="columnN_ADR" msprop:Generator_ColumnPropNameInRow="N_ADR" msprop:Generator_ColumnPropNameInTable="N_ADRColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1024" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_INF_CENTR" msprop:Generator_UserColumnName="N_INF_CENTR" msprop:Generator_ColumnVarNameInTable="columnN_INF_CENTR" msprop:Generator_ColumnPropNameInRow="N_INF_CENTR" msprop:Generator_ColumnPropNameInTable="N_INF_CENTRColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_ORG_NAPRAVIL" msprop:Generator_UserColumnName="N_ORG_NAPRAVIL" msprop:Generator_ColumnVarNameInTable="columnN_ORG_NAPRAVIL" msprop:Generator_ColumnPropNameInRow="N_ORG_NAPRAVIL" msprop:Generator_ColumnPropNameInTable="N_ORG_NAPRAVILColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_SP" msprop:Generator_UserColumnName="N_SP" msprop:Generator_ColumnVarNameInTable="columnN_SP" msprop:Generator_ColumnPropNameInRow="N_SP" msprop:Generator_ColumnPropNameInTable="N_SPColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>